/**
 * Created by wzq on 15-3-28.
 */

var express = require('express');
var router = express.Router();
var errInfo = require('../lib/errInfo.js');
module.exports = exports = router;
var debug = require('debug')('share');


// /share/list/pageIndex
router.all('/**', require('../lib/collectStringBody'));

// router.get('/list/:pageIndex?', function(req, res, next) {
//   console.log('aa');
//   var pageIndex = req.params.pageIndex;
//   if (!pageIndex) pageIndex = 1;
//
//   res.end(errInfo.developing);
// });

router.post('/', function(req, res, next) {
	console.log(req.stringBody);
	res.end(errInfo.developing);
});
